package com.training.java.core.oop.basic;

public class Car {
	
	int currentSpeed = 0;
	boolean started = false;
	
	void speedUp(int increment) {
		currentSpeed = currentSpeed + increment;
	}
	
	void applyBrakes(int decrement) {
		currentSpeed = currentSpeed - decrement;
	}
	void start() {
		started = true;
	}
	
	void stop() {
		started = false;
		currentSpeed = 0;
	}
	void printInfo() {
		System.out.println("Car started = " + started);
		System.out.println("Current speed = " + currentSpeed);
	}

}
